<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>受邀点评</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>
<meta name="format-detection" content="address=no"/>
<link href="__PUBLIC__/css/base.css" rel="stylesheet"/>
</head>
<body>
<!---  头部开始  -->
<div class="top clearfix">
	<div class="icon_left"></div>
	<div class="icon_right"></div>
</div>
<!---  头部结束  -->
<div class="dpjl cssss">
	<div class="nav4">
		<a class="nav_05 check">待点评</a>
		<a class="already">已点评</a>
	</div>
	<div class="list_01">
	</div>
	<a class="more">获取更多</a>
</div>
</body>
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/comm.js"></script>
<script>
var cashtype=3;		//3未点评 2已点评
var pageSize=5;//每页多少条
var pageIndex=0;//初始化第0页
$(".nav4 a").click(function(){
	if($(this).hasClass("already")){
		cashtype=2;
	}else{
		cashtype=3;
	}
	pageIndex=0;
	$(".list_01").html("");
	getlist();
	$(this).addClass("check").siblings().removeClass("check");	
});
function getlist(){
	var new_element;
	$.post('__URL__/dpjl1_page',{
		pageSize:pageSize,
		pageIndex:pageIndex,
		cashtype:cashtype
	},function(e){
		if(null==e){
			$(".more").text('没有数据');
			return;
		}
		if(e.length<pageSize){
			$(".more").text('已经是最后一页');
		}
		$.each(e,function(k,v){
			//v.id,ID
			//v.image,小图片
			//v.major,专业
			//v.diagnostic,诊断
			//v.praise,点赞
			//<a>__URL__/bl_info</a>			
			new_element='<a class="list1" href="__URL__/bl_info3/id/'+v.id+'">'+
				'<img src="'+v.image+'" />'+
				'<div class="text">'+
					'<p>'+
						'<b>诊断：</b>'+
						'<span>'+v.diagnostic+'</span>'+
					'</p>'+
					'<p>'+
						'<b>专业：</b>'+
						'<span class="zhenduan">'+v.major+'</span>'+					
					'</p>'+			
				'</div>'+
				'<p class="zljh">'+
					'<b>治疗计划和治疗：</b>'+
					'<span>'+v.tp+'</span>'+
				'</p>'+
			'</a>';
			$(".list_01").append(new_element);
		});
		pageIndex++;//当前计数加
	});
}
getlist();
$(".more").on("click",function(){
	getlist();
});
</script>
</html>